﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第九十九题
//BC101 班级成绩输入输出
//https://www.nowcoder.com/practice/60d96b08e1cb42e38629d54e37eac008?tpId=107&tqId=33382&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    float arr[5][5] = { 0.0f };
    //存储输入数据
    for (int i = 0; i < 5; i++) {
        for (int j = 0; j < 5; j++) {
            scanf("%f ", &arr[i][j]);
        }
    }
    //打印数据
    for (int i = 0; i < 5; i++) {
        float sum = 0.0f;
        for (int j = 0; j < 5; j++) {
            sum += arr[i][j];
            printf("%.1f ", arr[i][j]);
        }
        printf("%.1f", sum);
        printf("\n");
    }

    return 0;
}